package com.bay1ts.service.impl;
import com.bay1ts.dao.UsersMapper;
import com.bay1ts.service.SMSService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by root on 2015/11/17.
 */
public class SMSServiceImpl implements SMSService {
    @Autowired
    private UsersMapper usersMapper;
    public void sendDynamicPasswordMessage(String phonenumber) {
        //调用短信提供商的接口

        //发送的内容是
        int code = usersMapper.getDynamicCodeByPhonenumber(phonenumber);
        System.out.println("假设短信已经发出去了，手机号是："+phonenumber+"内容是："+code);
    }
}
